package com.tboss.template.common.utils;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

public class DateUtils {
	
	public static String getDateFormat(String format){
		Calendar cal = new GregorianCalendar();
		Date creationDate = cal.getTime();
		SimpleDateFormat formatter = new SimpleDateFormat(format);
		
		return formatter.format(creationDate);
	}
	
}
